/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the MIT License. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/

.monaco-table * {
    box-sizing: border-box;
    white-space: pre;
}

.monaco-table {
    width: 100%;
    height: 100%;
}

.monaco-table > div {
    width: 100%;
    height: 100%;
}

.slick-header-menubutton {
    background-position: center center;
    background-repeat: no-repeat;
    cursor: pointer;
    display: inline-block;
    width: 12px;
    background-image: url("menu.svg");
    background-size: 16px;
    flex: 0 0 auto;
    margin-right: 2px;
    background-color: transparent;
    border: 0px;
    padding: 0px;
}

.slick-header-menubutton:hover {
    color: var(--vscode-list-hoverForeground);
    background-color: var(--vscode-list-hoverBackground);
}

.slick-header-menubutton:focus {
    color: var(--vscode-list-hoverForeground);
    background-color: var(--vscode-list-hoverBackground);
}

.slick-header-menu-image-button-container {
    flex: 0 0 auto;
}

.monaco-table label {
    display: block;
    margin-bottom: 5px;
}

.slick-header-menuitem {
    border: 1px solid transparent;
    padding: 2px 4px;
    cursor: pointer;
    list-style: none outside none;
    margin: 0;
}

.slick-header-menuitem:hover {
    border-color: #bfbdbd;
}

.header-overlay,
.cell-overlay,
.selection-cell-overlay {
    display: block;
    position: absolute;
    z-index: 999;
}

.slick-icon-cell-content {
    background-position: 5px center !important;
    background-repeat: no-repeat;
    background-size: 16px !important;
    width: 100%;
    height: 100%;
    padding-left: 30px;
    color: inherit !important;
    display: flex;
    align-items: center;
}

.slick-cell .toggle {
    font-size: 12px !important;
    margin-right: -5px;
}

.checkbox-list {
    min-height: 200px;
    max-height: 250px;
}

#popup-menu .checkbox-list label {
    display: flex;
    align-items: center;
    padding: 4px;
    font-size: 13px;
    cursor: pointer;
}

/* Icons */
/* Icon for menu button */
.vscode-dark .slick-header-menubutton,
.vscode-high-contrast .slick-header-menubutton {
    background-image: url("menu_inverse.svg");
}

.vscode-light .slick-header-menubutton,
.vscode-high-contrast.vscode-high-contrast-light .slick-header-menubutton {
    background-image: url("menu.svg");
}

/* Icon for menu button when filter is applied */
.vscode-dark .slick-header-menubutton.filtered,
.vscode-high-contrast .slick-header-menubutton.filtered {
    background-image: url("filterFilled_inverse.svg");
}

.vscode-light .slick-header-menubutton.filtered,
.vscode-high-contrast.vscode-high-contrast-light .slick-header-menubutton.filtered {
    background-image: url("filterFilled.svg");
}

/* Sort indicator icon styling */
.slick-sort-indicator-icon {
    display: inline-block;
    width: 12px;
    margin-left: 4px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 14px;
    flex: 0 0 auto;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.slick-sort-indicator-icon.sorted-asc,
.slick-sort-indicator-icon.sorted-desc {
    opacity: 1;
}

.vscode-dark .slick-sort-indicator-icon.sorted-asc,
.vscode-high-contrast .slick-sort-indicator-icon.sorted-asc {
    background-image: url("sort_asc_inverse.svg");
}

.vscode-light .slick-sort-indicator-icon.sorted-asc,
.vscode-high-contrast.vscode-high-contrast-light .slick-sort-indicator-icon.sorted-asc {
    background-image: url("sort_asc.svg");
}

.vscode-dark .slick-sort-indicator-icon.sorted-desc,
.vscode-high-contrast .slick-sort-indicator-icon.sorted-desc {
    background-image: url("sort_desc_inverse.svg");
}

.vscode-light .slick-sort-indicator-icon.sorted-desc,
.vscode-high-contrast.vscode-high-contrast-light .slick-sort-indicator-icon.sorted-desc {
    background-image: url("sort_desc.svg");
}
